//
//  NewsDetailViewController.m
//  网易新闻
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 马文强. All rights reserved.
//

#import "NewsDetailViewController.h"

@interface NewsDetailViewController ()
@property (nonatomic, strong) UIWebView *webView;
@end

@implementation NewsDetailViewController


- (void)loadWebView
{
    _webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:_webStr]];
    [self.view addSubview:_webView];
    [_webView loadRequest:request];
    
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self loadWebView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
